package com.daniel.mi.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.daniel.mi.dto.UsersDto;
import com.daniel.mi.query.UsersQuery;
import com.daniel.mi.req.RabbitMqReq;
import com.daniel.mi.result.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;


/**
 * @Author zengneng46764
 * @Date 2024/3/6 21:48
 * @Since 1.0.0.0
 * @description: 用户服务对外接口
 */
@RestController
@RequestMapping("/member/info")
@CrossOrigin
@Api(tags = "会员信息")
public interface UsersController {
    @ApiOperation(value = "用户信息查询列表列表")
    @RequestMapping(value = "/page", method={RequestMethod.POST,RequestMethod.GET})
    Page<UsersDto> page(UsersQuery query);

    @RequestMapping("/mqTest")
    @ResponseBody
    BaseResponse mqTest(@RequestBody RabbitMqReq req);
}
